cmake_minimum_required(VERSION 2.6)

project(OsgOverlayDemo)

find_package(OpenSceneGraph REQUIRED osgViewer osgGA osgText)
find_package(UEye)

if(UEye_FOUND)
   if(UNIX)
      add_definitions(-D__LINUX__)
   endif()
   set(LIBS ${LIBS} ${UEye_LIBRARIES})
   option(USE_UEYE "Using UEye library" ON)
else()
   set(USE_UEYE OFF CACHE BOOL "Using UEye library" FORCE)
endif()

if(USE_UEYE)
   add_definitions(-DHAVE_UEYE)
endif()

include_directories(
   ${OPENSCENEGRAPH_INCLUDE_DIRS}
   ${BTL2_INCLUDE_DIRS}
   ${BTL2_EXTRA_INCLUDE_DIRS}
)

set(SOURCES
   main.cpp
)

add_executable(OsgOverlayDemo ${SOURCES} ${MOC_SOURCES})

target_link_libraries(OsgOverlayDemo
   ${LIBS}
   ${BTL2_LIBRARIES}
   ${BTL2_EXTRA_LIBRARIES}
   ${OPENSCENEGRAPH_LIBRARIES}
)

